package output.input.cwiczenia;

import java.io.File;

public class KlasaIOCwiczenia {

    public static void main(String[] args) {

        @SuppressWarnings("unused")
        File f = new File("C:/Users/Janusz/Documents/Programy/J/jamaica.java");
        
        File fld = new File("C:/Users/Janusz/Documents/Programy/J/Folder Testowy 1");
//        File fld = new File("C:/Users/Janusz/Documents/Programy/J");
        fld.mkdir();
        
        String[] zawartoscFolderu = null;
        if(fld.isDirectory())
            zawartoscFolderu = fld.list();
        
        for(String e : zawartoscFolderu)
            System.out.println(e);
        
        boolean skasowano = false;
        skasowano = fld.delete();
        if(skasowano == false)
        System.out.println(skasowano);
        
    }

}
